package xyz.jangle.enum1;

public class EnumMain {

	public static void main(String[] args) {
		
		double price=0;
		boolean show=false;
		for(Fruit fruit:Fruit.values()) {
			switch(fruit) {
				case 苹果:price=1.5;
					show =true;
					break;
				case 芒果:price=6.8;
					show = true;
					break;
				case 香蕉:price=2.8;
					show = true;
					break;
				default:show=false;
			}
			if(show) {
				System.out.println(fruit+"500克的价格"+price+"元");
			}
			
		}

	}

}
